.payment-container {
  background-color: #f5f5f5;
  min-height: 100vh;
  position: relative;
}

/* 顶部导航栏 */
.payment-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 44px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  z-index: 1000;
  border-bottom: 1px solid #f0f0f0;
}

.payment-header-title {
  font-size: 16px;
  font-weight: 500;
  color: #333;
}

.back-btn {
  position: absolute;
  left: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
}

/* 主要内容区域 */
.payment-content {
  margin-top: 44px;
  padding: 40px 20px 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* 支付金额区域 */
.amount-section {
  text-align: center;
  margin-bottom: 60px;
}

.amount-label {
  font-size: 14px;
  color: #999;
  margin-bottom: 8px;
}

.amount-value {
  font-size: 32px;
  font-weight: bold;
  color: #333;
}

/* 支付方式区域 */
.payment-methods {
  width: 100%;
  max-width: 300px;
  margin-bottom: 60px;
}

.payment-method-item {
  display: flex;
  align-items: center;
  padding: 16px 0;
  cursor: pointer;
  transition: background-color 0.2s;
}

.payment-method-item:hover {
  background-color: rgba(0, 0, 0, 0.02);
}

.payment-method-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  font-size: 18px;
  color: #fff;
}

.payment-method-icon.alipay {
  background: linear-gradient(135deg, #00a0e9, #0078d4);
}

.payment-method-icon.wechat {
  background: linear-gradient(135deg, #07c160, #00b04f);
}

.payment-method-text {
  flex: 1;
  font-size: 16px;
  color: #333;
}

.payment-method-radio {
  width: 20px;
  height: 20px;
  border: 2px solid #ddd;
  border-radius: 50%;
  position: relative;
  transition: all 0.2s;
}

.payment-method-radio.selected {
  border-color: #ff4d4f;
}

.payment-method-radio.selected::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  background-color: #ff4d4f;
  border-radius: 50%;
}

/* 确认支付按钮 */
.confirm-payment-btn {
  position: fixed;
  bottom: 30px;
  left: 20px;
  right: 20px;
  height: 48px;
  background: linear-gradient(135deg, #ff4d4f, #ff7875);
  border: none;
  border-radius: 24px;
  font-size: 16px;
  font-weight: 500;
  color: #fff;
  cursor: pointer;
  transition: all 0.3s;
  z-index: 1000;
}

.confirm-payment-btn:hover {
  background: linear-gradient(135deg, #ff7875, #ffa39e);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 77, 79, 0.3);
}

.confirm-payment-btn:active {
  transform: translateY(0);
}

.confirm-payment-btn:disabled {
  background: #d9d9d9;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* 支付图标样式 */
.alipay-icon {
  font-weight: bold;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.wechat-icon {
  font-weight: bold;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* 安全区域适配 */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .confirm-payment-btn {
    bottom: calc(30px + env(safe-area-inset-bottom));
  }
}

/* 响应式设计 */
@media (max-width: 375px) {
  .payment-content {
    padding: 30px 16px 100px;
  }

  .amount-value {
    font-size: 28px;
  }

  .payment-methods {
    max-width: 100%;
  }

  .confirm-payment-btn {
    left: 16px;
    right: 16px;
  }
}

/* 加载状态 */
.payment-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.loading-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid #fff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* 支付成功/失败状态 */
.payment-result {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.payment-result-content {
  background: #fff;
  border-radius: 12px;
  padding: 40px 30px;
  text-align: center;
  max-width: 280px;
  width: 90%;
}

.payment-result-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.payment-result-icon.success {
  color: #52c41a;
}

.payment-result-icon.error {
  color: #ff4d4f;
}

.payment-result-title {
  font-size: 18px;
  font-weight: 500;
  color: #333;
  margin-bottom: 8px;
}

.payment-result-message {
  font-size: 14px;
  color: #666;
  margin-bottom: 24px;
}

.payment-result-btn {
  width: 100%;
  height: 40px;
  background: #1890ff;
  border: none;
  border-radius: 20px;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
}
